package com.im.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.im.app.model.Personhost;
import com.im.app.model.User;
import com.im.app.utils.ResponseResult;
import org.jim.core.packets.Group;


import java.util.List;

public interface IPersonhostService extends IService<Personhost> {

    public Personhost getPersonhostByCode(String code);

    public Personhost getPersonHostByKaMiCode(String code);

    public Personhost getPersonHostByDomain(String domain);

    /**
     * 客服分配域名
     *
     * @param user 用户管理
     * @return 结果
     */
    public void updateUsersByOpration(User user);


    public void updateUsersByDlOpration(User user,String code);

    public void updateGroupOpration(Group group);


    public void repairOpration(User user);

    public ResponseResult<Personhost> backUpOpration(User user, Integer id);

    public List<Personhost> getAll(String userId);

}
